	<!-- 当前所在位置 START -->
	{include file="_url.here.tpl"}
	<!-- 当前所在位置 END -->

	<!-- 主体区 -->
	<div class="area">

		<!-- 主体左边区 START -->
		<div class="aleft">
			
			<!-- 左边导航栏 START -->
			
{include file='./user/_user.nav.tpl'}
			<!-- 左边导航栏 END -->
			
		</div>
		<!-- 主体左边区 END -->

		<!-- 主体右边区 START -->
		<div class="aright">

			<form id="fm_addr" action="./index.php?frm=user&mdl={$_act.mdl}&do={$_act.do}" method="post" target="ajax">
				<input type="hidden" name="formAction" value="{$_act.mdl}_{$_act.do}" />
				<input type="hidden" name="id" value="{$address_info.id}" />

				<!-- 编辑登录地址 START -->
				<div class="sl_t_block bdcolor-olivine">
					<div class="tt">
						<h2 class="color-olivine">编辑登录地址</h2>
					</div>
					<div class="main-block pattern_line_right key-item">
						<dl><dt>区域：</dt><dd>{include file='lbi/address.unity.tpl'}</dd><div class="clear"></div></dl>
						<dl><dt>详细地址：</dt><dd><input type="text" tabindex="1" name="address" value="{$address_info.address}" class="input" style="width:640px;" /></dd><div class="clear"></div></dl>
						<dl><dt>收货人姓名：</dt><dd><input type="text" tabindex="2" name="consignee" value="{$address_info.consignee}" class="input" style="width:240px;" /></dd><div class="clear"></div></dl>
						<dl><dt>邮编：</dt><dd><input type="text" tabindex="3" name="zipcode" value="{$address_info.zipcode}" class="input" style="width:240px;" /></dd><div class="clear"></div></dl>
						<dl><dt>手机：</dt><dd><input type="text" tabindex="4" name="mobile" value="{$address_info.mobile}" class="input" style="width:240px;" /></dd><div class="clear"></div></dl>
						<dl><dt>固话：</dt><dd><input type="text" tabindex="5" name="tel" value="{$address_info.tel}" class="input" style="width:240px;" /></dd><div class="clear"></div></dl>
						<dl><dt>电子邮件：</dt><dd><input type="text" tabindex="6" name="email" value="{$address_info.email}" class="input" style="width:240px;" /></dd><div class="clear"></div></dl>
						<dl><dt>送货时间：</dt><dd><select tabindex="7" name="besttime" class="select">{$address_info.besttime}</select></dd><div class="clear"></div></dl>
						
					</div>
				</div>
				<!-- 编辑登录地址 END -->

				<div class="space20"></div>

				<div class="tcenter">
					<input type="submit" tabindex="8" value="提交" class="btn-main" />
				</div>

			</form>
		</div>
		<!-- 主体右边区 END -->

	</div>


	<script type="text/javascript" language="JavaScript" charset="utf-8">
	<!-- 
		{literal}
		jQuery(function($){
			$('#fm_addr').submit(function(evt){
				var province_id	= $.trim($(this).find('select[name="province_id"]').val());
				var city_id		= $.trim($(this).find('select[name="city_id"]').val());
				var area_id		= $.trim($(this).find('select[name="area_id"]').val());
				var address		= $.trim($(this).find('input[name="address"]').val());
				var consignee	= $.trim($(this).find('input[name="consignee"]').val());
				var mobile		= $.trim($(this).find('input[name="mobile"]').val());

				var errmsg = [];
				if(province_id == '' || province_id <= 0)errmsg.push('未选择省');
				if(city_id == '' || city_id <= 0)errmsg.push('未选择市');
				if(area_id == '' || area_id <= 0)errmsg.push('未选择区');
				if(address == '')errmsg.push('未输入详细地址');
				if(consignee == '')errmsg.push('未输入收货人姓名');
				if(mobile == '' || mobile.length < 11 || (new RegExp(regexEnum.mobile)).test(mobile) == false)errmsg.push('未输入手机或格式不正确');

				if(errmsg.length > 0){
					evt.iscancelled = true;	// 阻止其他事件
					errmsg = errmsg.join('<br />');
					showmsg_warning(errmsg, {title:'表单验证失败'});
					return false;
				}
				return true;
			});
		});

		function callback_address_save(params){
			if(params.result == 'succ'){
				params.msg = params.msg || '地址信息保存成功';
				params.url = './index.php?frm=user&mdl=address&do=list';
			}
			callback_common(params);
		}
		{/literal}
	//-->
	</script>